import {RouteRecordRaw} from 'vue-router'

const route: RouteRecordRaw[] = [
  {
    path: '/system',
    name: 'system',
    component: () => import('@/layouts/main.vue'),
    meta: {menu: {title: '系统管理', icon: 'fas fa-chalkboard-teacher'}},
    children: [
      {
        path: ':resource/list',
        name: 'system-list',
        props: true,
        meta: {
          menu: {
            public: [{path: '/system/users/list', title: '用户管理'}],
          },
        },
        component: () => import('@/views/content/coursesCrud.vue'),
      },
    ],
  },
]

export default route
